package com.kotlin.dongdong.framework.http.apiservice

import com.kotlin.dongdong.framework.http.resultentity.BackResult
import com.kotlin.dongdong.framework.http.resultentity.BookEntity
import com.kotlin.dongdong.framework.http.resultentity.loginEntity
import io.reactivex.Observable
import retrofit2.http.*

/**
 * Created by dongdongzheng on 2018/2/11.
 */
interface UserService {

    /**
     * 登录
     */
    @POST("/user/login")
    fun login(@Query("username") phone: String, @Query("password") password: String):
            Observable<BackResult<loginEntity>>


    @GET("/v2/book/1220562")
    fun getBook(): Observable<BookEntity>


}